﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace WpfApplication5.Models
{
    public class FunctionCategory
    {
        public FunctionCategory(){}

        public FunctionCategory(DataRow row)
        {
            if (row != null)
            {
                this.Id = Convert.ToInt32(row["id"]);
                this.NameCN = row["cname"].ToString();
                this.NameEN = row["ename"].ToString();
                this.Order = Convert.ToInt32(row["ord"]);
                this.ParentId = Convert.ToInt32(row["pid"]);
            }
        }

        #region Property
        public int Id { get; set; }
        public string NameCN { get; set; }
        public string NameEN { get; set; }
        public int Order { get; set; }
        public int ParentId { get; set; }
        #endregion        
    }
}
